package com.white.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.white.bean.Block;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BlockMapper extends BaseMapper<Block> {
    String TABLE_NAME = " block ";

    @Insert("insert" + TABLE_NAME + "(userId, blockUserId) values(#{userId}, #{blockUserId})")
    void create(Block block);

    @Delete("delete from" + TABLE_NAME + "where userId = #{userId} and blockUserId = #{blockUserId}")
    void myDelete(Block block);
}
